home *** CD-ROM | disk | FTP | other *** search
- Declare Function ShowCursor Lib "USER" (ByVal fShow As Integer) As Integer
-
- Sub CenterForm (frm As Form)
- Dim x As Integer, y As Integer 'New directions for the form
-
- x = (screen.Width - frm.Width) / 2
- y = (screen.Height - frm.Height) / 2
- frm.Move x, y 'Change the location of the form
-
- End Sub
-
- Sub EndScrnsave ()
- SHOWMOUSE ' Make mouse pointer visible again
- End ' And exit
- End Sub
-
- Sub HideMouse ()
- While ShowCursor(False) >= 0
- Wend
- End Sub
-
- Sub main ()
- '
- '
- ' Check to see if we should blank the screen, or display
- ' the Setup dialog box.
- '
- If InStr(Command$, "/c") Then
- SetupForm.Show 1
- ElseIf InStr(Command$, "/s") Then
- BlankForm.Show
- End If
-
- '
- ' Wait until there are no form visible, then quit.
- '
- While DoEvents() > 0 ' Loop until no forms visible
- Wend
- End Sub
-
- Sub SHOWMOUSE ()
- While ShowCursor(True) < 0
- Wend
- End Sub
-
-